package com.jf.identity.entity;

import com.alibaba.fastjson.annotation.JSONField;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 指令/回复
 *
 * @author FCG
 */
public class Message extends ExamBaseParam implements Serializable {
    private static final long serialVersionUID = 7120144321875032935L;
    /**
     * 指令id
     */
    @NotBlank(message = "指令id 不能为空")
    @JSONField(name = "MsgId")
    private String msgId;
    @JSONField(name = "Type")
    private String type;
    @JSONField(name = "Title")
    private String title;
    @JSONField(name = "Content")
    private String content;
    @JSONField(name = "DateTime")
    private Date dateTime;
    /**
     * 已读true
     */
    @JSONField(name = "Read")
    private Boolean read;
    /**
     * 是否已回复
     */
    @JSONField(name = "Replied")
    private Boolean replied;
    @JSONField(name = "LogicExamRoomNum")
    private String logicExamRoomNum;
    /**
     * 回复内容
     */
    @Size(max = 500, message = "回复内容 最大500字符")
    private String reply;
    /**
     * 图片 上限5张
     */
    @Size(max = 5, message = "图片 上限5张")
    private List<String> images;
    /**
     * 图片存放路径
     */
    private String imageUrls;

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public Boolean getRead() {
        return read;
    }

    public void setRead(Boolean read) {
        this.read = read;
    }

    public Boolean getReplied() {
        return replied;
    }

    public void setReplied(Boolean replied) {
        this.replied = replied;
    }

    public String getReply() {
        return reply;
    }

    public void setReply(String reply) {
        this.reply = reply;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public String getImageUrls() {
        return imageUrls;
    }

    public void setImageUrls(String imageUrls) {
        this.imageUrls = imageUrls;
    }

    public String getLogicExamRoomNum() {
        return logicExamRoomNum;
    }

    public void setLogicExamRoomNum(String logicExamRoomNum) {
        this.logicExamRoomNum = logicExamRoomNum;
    }
}
